package ar.com.raulsanchez.syncrolist;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class EditActivity extends Activity{

	private EditText inputTitulo;
	Bundle extras;
	Integer array_id;
	
	
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_edit_activity);
        //setTitle(R.string.editar_nota);
        
        if (savedInstanceState == null) {
             extras = getIntent().getExtras();
            if(extras == null) {
                array_id = null;
            } else {
                array_id= extras.getInt("array_id");
            }
        } else {
            array_id = (Integer) savedInstanceState.getSerializable("array_id");
        }
        
        
        inputTitulo = (EditText) findViewById(R.id.titulo);
        inputTitulo.setText(array_id.toString());
        
    } // onCreate
	
}
